<%-- 
    Document   : emp_detai_tab1
    Created on : Nov 10, 2013, 6:24:58 PM
    Author     : zraj
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<!DOCTYPE html>
<link rel="stylesheet" href="css/tabcss.css" />
<link rel="stylesheet" href="css/maincss.css" />
<style type="text/css">
    .data{
        color:#0066cc;
    }
</style>
<script type="text/javascript">
            function addPic()
            {   
                $('#form-upload').submit();
            } 
             
            function editEmp()
            {   
                $('#form-edit-emp').submit();
            }
</script>
<s:form action="userImage" id="form-upload">
    <s:hidden id="hidEmpID" name="empId" value="%{emp.empId}"></s:hidden>
</s:form>
<s:form id="form-edit-emp" action="formEditEmp">
    <s:hidden id="hidEmpID" name="empID" value="%{emp.empId}"></s:hidden>
</s:form>
 <table width="756" height="0" border="0" cellSpacing="0" cellPadding="0">
        <tbody><tr> 
                <td height="490" vAlign="top" background="images/left_menu_bg.jpg" width="169"><table border="0" cellSpacing="0" cellPadding="0" width="169">
                        <tbody><tr> 
                                <td><img src="images/tran.gif" width="10" height="8"></td>
                                <td>&nbsp;</td>
                                <td><img src="images/tran.gif" width="10" height="8"></td>
                            </tr>
                            <tr> 
                                <td width="10">&nbsp;</td>
                                <td width="149"><div align="center"><img src="<s:property value="%{emp.picPath}"></s:property>" width="126" height="169"> 
                                    </div></td>
                                <td width="10">&nbsp;</td>
                            </tr>
                            <tr> 
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr> 
                                <td background="images/left_menu_head_bg.jpg" colSpan="3"><div align="center"><span class="style2">รหัสพนักงาน</span> 
                                        <span class="style1 data">
                                            <s:property value="%{emp.empId}"></s:property>
                                            </span>
                                            <sj:a href="#" button="true" onclick="addPic()" cssStyle="color:white;" >อัพโหลดรูป</sj:a>
                                    </div></td>
                                </tr>
                                <tr> 
                                    <td colSpan="3"><img src="images/left_menu_showdow_bg.jpg" width="168" height="13"></td>
                                </tr>
                            </tbody></table></td>
                    <td bgColor="#f8f8f8" vAlign="top" width="587"><table border="0" cellSpacing="2" cellPadding="0" width="589">
                            <tbody><tr> 
                                    <td height="0" width="12">&nbsp;</td>
                                    <td vAlign="top" width="559"> <table border="0" cellSpacing="0" cellPadding="0" width="557">
                                            <tbody><tr> 
                                                    <td height="19">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="0" cellPadding="0" width="100">
                                                            <tbody><tr> 
                                                                    <td bgColor="#e4e4e4" height="20" width="200"> 
                                                                        <span class="style9">ข้อมูลพนักงาน</span> 
                                                                    </td>
                                                                </tr>
                                                                <tr> 
                                                                    <td><img src="images/border_footer_menu.jpg" width="100" height="5"></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td height="17">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="15" width="97">ชื่อ-สกุล</td>
                                                                    <td bgColor="#ffffcc" width="286"><span class="style7 data">
                                                                        <s:property value="%{titleName.titleTH}"   ></s:property>
                                                                         &nbsp;
                                                                        <s:property value="%{emp.nameTH}"></s:property>
                                                                         &nbsp;
                                                                        <s:property value="%{emp.surnameTH}" ></s:property>
                                                                        </span><span class="style7">
                                                                           </span><span class="style7">
                                                                         </span><span class="style8"></span></td>
                                                                    <td width="72">ชื่อเล่น</td>
                                                                    <td bgColor="#ffffcc" width="89"><span class="style7 data"><s:property value="%{emp.nickname}"></s:property></span></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td height="18">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="15" width="97">first-last</td>
                                                                    <td bgColor="#ffffcc" width="286"><span class="style7 data">
                                                                         <s:property value="%{titleName.titleEN}"   ></s:property>
                                                                         &nbsp;
                                                                        <s:property value="%{emp.nameEN}"></s:property>
                                                                         &nbsp;
                                                                        <s:property value="%{emp.surnameEN}" ></s:property>   
                                                                        </span><span class="style7"><br/> 
                                                                    </span><span class="style7"><br/>  </span><span class="style8"><a href="PartB1NameSurname"> </a></span></td>
                                                                    <td width="72">เพศ</td>
                                                                    <td class="style7 data" bgColor="#ffffcc" width="89">
                                                                    <s:property value="%{sexType.sexName}" ></s:property>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td>&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td height="15" width="97">เชื้อชาติ</td>
                                                                <td bgColor="#ffffcc" width="112"><span class="style7 data"><s:property value="%{emp.birthPlace}" ></s:property></span></td>
                                                                    <td width="73">สัญชาติ</td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7 data"><s:property value="%{emp.nationallity}"></s:property></span></td>
                                                                    <td width="70">ศาสนา</td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data">
                                                                        <s:property value="%{religion.religionName}"></s:property>
                                                                        </span></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td>&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td height="15" width="97">จังหวัดที่เกิด</td>
                                                                <td bgColor="#ffffcc" width="112"><span class="style7 data">
                                                                    <s:property value="%{birthProvince.provinceName}"></s:property>
                                                                    </span></td>
                                                                <td width="73">กรุ๊ปเลือด</td>
                                                                <td bgColor="#ffffcc" width="100"><span class="style7 data">
                                                                    <s:property value="%{bloodType.bloodTypeName}"></s:property>
                                                                    </span> </td>
                                                                <td   width="70"></td>
                                                                <td  width="90"><span class="style7"></span></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td>&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td height="16" width="97">เลขที่บัตรประชาชน</td>
                                                                <td bgColor="#ffffcc" width="112"><span class="style7 data"><s:property value="%{emp.idcardNumber}" ></s:property></span></td>
                                                                    <td width="73">วันออกบัตร</td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7 data"><s:date name="emp.idcardStartDate" format="dd/MM/yyyy"></s:date></span></td>
                                                                    <td width="70">บัตรหมดอายุ</td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data"><s:date name="emp.idcardEndDate" format="dd/MM/yyyy"></s:date></span></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td width="11">&nbsp;</td>
                                                    <td width="1793" colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="16" width="97">วัน/เดือน/ปี เกิด</td>
                                                                    <td bgColor="#ffffcc" width="112"><span class="style7 data"><s:date name="emp.birthDate" format="dd/MM/yyyy"></s:date></span></td>
                                                                    <td width="73"></td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7"></span> 
                                                                    </td>
                                                                    <td width="70">สถานภาพ</td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data">
                                                                        <s:property value="%{marital.statusName}"></s:property>
                                                                    </span></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td height="17">&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td height="15" width="97">วันเข้างาน</td>
                                                                <td bgColor="#ffffcc" width="112"><span class="style7 data"><s:date name="emp.workStartDate" format="dd/MM/yyyy"></s:date></span></td>
                                                                    <td width="73">วันบรรจุ</td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7 data"><s:date name="emp.workRegisDate" format="dd/MM/yyyy"></s:date></span></td>
                                                                    <td width="63">วันพ้นสภาพ</span></td>
                                                                    <td bgColor="#ffffcc" width="97"> <span class="style7 data"><s:date name="emp.workEndDate" format="dd/MM/yyyy"></s:date></span>                                  </td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>                          
                                                <tr> 
                                                    <td height="17">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="15" width="97">บุคคลติดต่อฉุกเฉิน</td>
                                                                    <td bgColor="#ffffcc" width="286"><span class="style7 data"><s:property   value="%{emp.contactPerson}"></s:property></span></td>
                                                                    <td width="63">โทรศัพท์</td>
                                                                    <td bgColor="#ffffcc" width="97"><span class="style7 data"><s:property  value="%{emp.contactTel}"></s:property></span></td>
                                                                </tr>
                                                            </tbody></table>
                                                    </td>
                                                </tr>
                                                <tr> 
                                                    <td height="17">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="16" width="96">จำนวนบุตร</td>
                                                                    <td bgColor="#ffffcc" width="113"><span class="style7">
                                                                        <s:property   value="%{emp.children}"></s:property></span></td>
                                                                    <td width="98"> เลขที่ประกันสังคม</td>
                                                                    <td bgColor="#ffffcc" width="230"> <span class="style7">
                                                                        <s:property   value="%{emp.insureId}"></s:property>
                                                                    </span></td>
                                                            </tr>
                                                        </tbody></table>
                                                 </td>
                                                </tr>
                                                 <tr> 
                                                    <td height="17">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="16" width="96">เลขที่บัญชีธนาคาร</td>
                                                                    <td bgColor="#ffffcc" width="113"><span class="style7">
                                                                       <s:property   value="%{emp.bankId}"></s:property></span></td>
                                                                    <td width="98" > เลขที่ทะเบียนสมรส</td>
                                                                    <td bgColor="#ffffcc" width="230"> <span class="style7">
                                                                        <s:property   value="%{emp.marriedId}"></s:property>
                                                                    </span></td>
                                                            </tr>
                                                        </tbody></table>
                                                 </td>
                                                </tr>
                                                <tr> 
                                                    <td>&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="0" cellPadding="0" width="100">
                                                            <tbody><tr> 
                                                                    <td bgColor="#e4e4e4" height="20" width="200"> 
                                                                        <span class="style9">การศึกษา </span></td>
                                                                </tr>
                                                                <tr> 
                                                                    <td><img src="images/border_footer_menu.jpg" width="100" height="5"></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td>&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="15" width="97">วุฒิการศึกษา</td>
                                                                    <td bgColor="#ffffcc" width="112"> <span class="style7 data">
                                                                        <s:property value="%{graduate.levelName}" ></s:property> 
                                                                            
                                                                    </span>
                                                                    <span class="style8"><a href="PartB1Education"> </a></span></td>
                                                                <td width="73">สาขาวิชา</td>
                                                                <td bgColor="#ffffcc" width="131"><span class="style7 data">
                                                                    <s:property value="%{emp.graduateMajor}"></s:property>
                                                                        </span></td>
                                                                    <td width="39"><div align="left">GPA.</div></td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data">
                                                                        <s:property value="%{emp.gpa}"></s:property>
                                                                        </span></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td height="17">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="15" width="97">สถานศึกษา</td>
                                                                    <td bgColor="#ffffcc" width="286"><span class="style7 data"><s:property value="%{emp.graduateFrom}"></s:property></span></td>
                                                                    <td width="63" bgColor="#ffffcc"></td>
                                                                    <td bgColor="#ffffcc" width="97"><span class="style7"></span></td>
                                                                </tr>
                                                            </tbody></table>
                                                    </td>
                                                </tr>

                                                <tr> 
                                                    <td>&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="0" cellPadding="0" width="100">
                                                            <tbody><tr> 
                                                                    <td bgColor="#e4e4e4" height="20" width="200"> 
                                                                        <span class="style9">ตำแหน่ง </span></td>
                                                                </tr>
                                                                <tr> 
                                                                    <td><img src="images/border_footer_menu.jpg" width="100" height="5"></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td>&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="16" width="96">ตำแหน่งงาน</td>
                                                                    <td bgColor="#ffffcc" width="113"><span class="style7 data">
                                                                        <s:property value="%{emp.positionName}"></s:property></span></td>
                                                                    <td width="70"> หน่วยงาน</td>
                                                                    <td bgColor="#ffffcc" width="265"> <span class="style7 data">
                                                                        <s:property
                                                                            value="%{dept.departmentName}" 
                                                                            ></s:property>
                                                                    </span></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td>&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td height="16" width="96">โทรศัพท์ภายใน</td>
                                                                <td bgColor="#ffffcc" width="113"><span class="style7 data">
                                                                    <s:property value="%{emp.companyTel}"></s:property></span></td>
                                                                    <td width="70"> E-mail</td>
                                                                    <td bgColor="#ffffcc" width="265"> <span class="style7 data">
                                                                        <s:property value="%{emp.email}"></s:property></span></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td>&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="16" width="96">ประเภทพนักงาน</td>
                                                                    <td bgColor="#ffffcc" width="113"><span class="style7 data">
                                                                        <s:property value="%{empType.empTypeName}" ></s:property>
                                                                            
                                                                    </span></td>
                                                                <td width="70" bgColor="#ffffcc"></td>
                                                                <td bgColor="#ffffcc" width="265"> <span class="style7">
                                                                    </span></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td>&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="0" cellPadding="0" width="100">
                                                        <tbody><tr> 
                                                                <td bgColor="#e4e4e4" height="20" width="200"> 
                                                                    <span class="style9"><s:property value="%{add.addressName}"></s:property> </span></td>
                                                            </tr>
                                                            <tr> 
                                                                <td><img src="images/border_footer_menu.jpg" width="100" height="5"></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td>&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td height="15" width="97">เลขที่</td>
                                                                <td bgColor="#ffffcc" width="112"> <span class="style7 data">
                                                                    <s:property value="%{add.addressNo}"></s:property>
                                                                        </span></td>
                                                                    <td width="73">ตรอก/ซอย</td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7 data">
                                                                        <s:property value="%{add.soi}"></s:property>
                                                                        </span></td>
                                                                    <td width="70">ถนน</td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data">
                                                                        <s:property value="%{add.road}"></s:property>
                                                                        </span></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr> 
                                                    <td height="16">&nbsp;</td>
                                                    <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                            <tbody><tr> 
                                                                    <td height="15" width="97">ตำบล/แขวง</td>
                                                                    <td bgColor="#ffffcc" width="112"><span class="style7 data">
                                                                        <s:property value="%{add.tambon}"></s:property>
                                                                        </span></td>
                                                                    <td width="73">อำเภอ/เขต</td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7 data">
                                                                        <s:property value="%{add.ampher}"></s:property>
                                                                        </span></td>
                                                                    <td width="70">จังหวัด</td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data">
                                                                        <s:property value="%{addProvince.provinceName}"></s:property> 
                                                                            
                                                                    </span></td>
                                                            </tr>
                                                        </tbody></table></td>
                                            </tr>
                                            <tr> 
                                                <td height="17">&nbsp;</td>
                                                <td colSpan="6"><table border="0" cellSpacing="1" cellPadding="0" width="549">
                                                        <tbody><tr> 
                                                                <td width="97"> รหัสไปรษณีย์</td>
                                                                <td bgColor="#ffffcc" width="112"><span class="style7 data">
                                                                    <s:property value="%{add.shipcode}"></s:property>
                                                                        </span></td>
                                                                    <td width="73">โทรศัพท์บ้าน</td>
                                                                    <td bgColor="#ffffcc" width="100"><span class="style7 data">
                                                                        <s:property value="%{add.homeTel}"></s:property>
                                                                        </span></td>
                                                                    <td width="70">มือถือ</td>
                                                                    <td bgColor="#ffffcc" width="90"><span class="style7 data">
                                                                        <s:property value="%{add.mobile}"></s:property>
                                                                        </span></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" style="text-align: center;">
                                                        -------------------------------------------------
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7" style="text-align: center;">
                                                    <sj:a href="#" button="true" onclick="editEmp()" cssStyle="color:white;" >แก้ไขข้อมูล</sj:a>
                                                    </td>
                                                </tr>
                                            </tbody></table>
                                        <br> </td>
                                    <td width="12"><img src="images/tran.gif" width="10" height="8"></td>
                                </tr>

                            </tbody></table></td>
                </tr>
            </tbody>
        </table>
